package com.zmc.common.constant;


/**
 * @author zmc
 */
public class QueueConstant {

    //----------------------topic模式 + 死信机制 实现 延时队列-------------------

    /**
     * 订单交换机
     */
    public static final String ORDER_EXCHANGE = "order_exchange";
    /**
     * 订单队列
     */
    public static final String ORDER_QUEUE = "order_queue";
    /**
     * 订单路由key
     */
    public static final String ORDER_QUEUE_ROUTING_KEY = "order.#";

    /**
     * 死信交换机
     */
    public static final String ORDER_DEAD_LETTER_EXCHANGE = "order_dead_letter_exchange";
    /**
     * 死信队列 routingKey
     */
    public static final String ORDER_DEAD_LETTER_QUEUE_ROUTING_KEY = "order_dead_letter_queue_routing_key";

    /**
     * 死信队列
     */
    public static final String ORDER_DEAD_LETTER_QUEUE = "order_dead_letter_queue";


    /**
     * 取消订单
     */
    public static final String ORDER_CANCEL_ROUTING_KEY = "order.cancel";


    /*---------------------------分单---------------------------------*/

    /**
     * 订单->分单交换机
     */
    public static final String SPLIT_ORDER_EXCHANGE = "split_order_exchange";
    /**
     * 订单->分单队列
     */
    public static final String SPLIT_ORDER_QUEUE = "split_order_queue";
    /**
     * 订单->分单路由key
     */
    public static final String SPLIT_ORDER_QUEUE_ROUTING_KEY = "split:order.#";


    /*---------------------------优惠卷扣减-----------------------------------*/

    /**
     * 交换机
     */
    public static final String COUPON_REDUCE_EXCHANGE = "coupon_reduce_exchange";
    /**
     * 队列
     */
    public static final String COUPON_REDUCE_QUEUE = "coupon_reduce_queue";
    /**
     * 路由key
     */
    public static final String COUPON_REDUCE_ROUTING_KEY = "coupon:reduce.#";


    /*---------------------------优惠卷补偿-----------------------------------*/

    /**
     * 交换机
     */
    public static final String COUPON_RETURN_EXCHANGE = "coupon_return_exchange";
    /**
     * 队列
     */
    public static final String COUPON_RETURN_QUEUE = "coupon_return_queue";
    /**
     * 由key
     */
    public static final String COUPON_RETURN_ROUTING_KEY = "coupon:return.#";

    /*---------------------------退款-----------------------------------*/

    /**
     * 交换机
     */
    public static final String REFUND_EXCHANGE = "refund_exchange";
    /**
     * 队列
     */
    public static final String REFUND_QUEUE = "refund_queue";
    /**
     * 由key
     */
    public static final String REFUND_ROUTING_KEY = "refund.order.#";

}
